package com.etone.smartAudit.dto.admin;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @author: sovy
 * @date: 2020-06-03 14:44:51
 * @description:
 */
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Data
@ApiModel(value = "PasswordDTO", description = "密码表单")
public class PasswordDTO implements Serializable {

    @ApiModelProperty("旧密码")
    @NotBlank(message = "不能为空")
    private String oldPassword;

    @ApiModelProperty("新密码")
    @NotBlank(message = "不能为空")
    private String password;

}